
#!/bin/bash 
CURRENT_DIRECTORY=`pwd`
EMBED_RESOURCE_SRC_DIR=${CURRENT_DIRECTORY}/tools/embed-resource
EMBED_RESOURCE_BUILD_DIR=${EMBED_RESOURCE_SRC_DIR}/out

rm -fr ${EMBED_RESOURCE_BUILD_DIR}
cmake -S ${EMBED_RESOURCE_SRC_DIR} -B ${EMBED_RESOURCE_BUILD_DIR}
cmake --build ${EMBED_RESOURCE_BUILD_DIR}

export EMBED_RESOURCE_DIR=${EMBED_RESOURCE_SRC_DIR}
export EMBED_RESOURCE=${EMBED_RESOURCE_BUILD_DIR}/embed-resource
